//97-122, 65-90
#include <iostream>
#include <string>
using namespace std;
string* rfname(int length)
{
		string* fn;
		fn = new string("");
		register int index;
		char* t;
		t = (char*)malloc((52)*sizeof(char));
		char* t1;
		t1 = t;
		for(int a = 'A'; a<='Z'; a++)
		{
			*(t++)=(char)a;
		}
		for(int a = 'a'; a<='z'; a++)
		{
			*(t++)=(char)a;
		}
		for(int x=0;x<length;x++)
		{
			index = rand()%(52);
			fn->append((t1+index),1);
		}
		return fn;
}
int main(int argc, char* argv[])
{
	string* l = rfname(12);
	cout<<*l<<endl;
}
